package com.heima;

public class CalculateTest {
    public static void main(String[] args) {
        //3的5次幂
        double pow = Math.pow(3, 5);
        System.out.println(pow);
        //向上取整ceil
        double ceil = Math.ceil(3.2);
        System.out.println(ceil);
        //向下取整
        System.out.println(Math.floor(3.8));
        //四舍五入
        System.out.println(Math.round(5.6));

    }
}
